using System;
using DevExpress.Xpo;

namespace Aij1.Model
{

    public class G_GuestBook : XPObject
    {
        public G_GuestBook(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }

        string fGuestName;
        [Size(50)]
        public string GuestName
        {
            get { return fGuestName; }
            set { SetPropertyValue<string>("GuestName", ref fGuestName, value); }
        }

        string fTel;
        [Size(50)]
        public string Tel
        {
            get { return fTel; }
            set { SetPropertyValue<string>("Tel", ref fTel, value); }
        }

        string fQQ;
        [Size(50)]
        public string QQ
        {
            get { return fQQ; }
            set { SetPropertyValue<string>("QQ", ref fQQ, value); }
        }

        string fContent;
        [Size(500)]
        public string Content
        {
            get { return fContent; }
            set { SetPropertyValue<string>("Content", ref fContent, value); }
        }

        DateTime fWriteTime;
        public DateTime WriteTime
        {
            get { return fWriteTime; }
            set { SetPropertyValue<DateTime>("WriteTime", ref fWriteTime, value); }
        }

        string fReply;
        [Size(500)]
        public string Reply
        {
            get { return fReply; }
            set { SetPropertyValue<string>("Reply", ref fReply, value); }
        }
        
        string fReplyer;
        [Size(50)]
        public string Replyer
        {
            get { return fReplyer; }
            set { SetPropertyValue<string>("Replyer", ref fReplyer, value); }
        }

        DateTime fReplyTime;
        public DateTime ReplyTime
        {
            get { return fReplyTime; }
            set { SetPropertyValue<DateTime>("RelayTime", ref fReplyTime, value); }
        }
    }

}